home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / monochrome.swf / scripts / frame_25 / PlaceObject2_589_279 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-08-26  |  298 b   |  19 lines

  1. onClipEvent(enterFrame){
  2.    _Y = _Y + 5;
  3.    if(_Y > 500)
  4.    {
  5.       _Y = 500;
  6.    }
  7.    if(hitTest(_root.ship.sh))
  8.    {
  9.       _Y = 500;
  10.       _root.ship.lvl = random(21) + 1;
  11.    }
  12.    pp = random(100);
  13.    if(pp == 0 && _Y >= 450)
  14.    {
  15.       _X = random(550);
  16.       _Y = -100;
  17.    }
  18. }
  19.